﻿using System;

class SandGlass
{
    static void Main()
    {
        int height = int.Parse(Console.ReadLine());
        int reseter = 0;
        int stars = height+2;
        int dots = 0;
        int sender = 0;

        for (int counter = 0; counter < height; counter++)
        {
            stars-=2;
            reseter = stars;
            dots=counter;
            while (dots > 0)
            {
                Console.Write(".");
                dots--;
            }
            dots = counter;
            while (reseter > 0)
            {
                Console.Write("*");
                reseter--;
            }
            while (dots > 0)
            {
                Console.Write(".");
                dots--;
            }
            if (stars == 1)
            {
                Console.WriteLine();
                sender = counter;
                goto bot;
            }
            Console.WriteLine();
        }
    bot:
        
        for (int counter = sender-1; counter >= 0; counter--)
        {
            stars += 2;
            reseter = stars;
            dots = counter;
            while (dots > 0)
            {
                Console.Write(".");
                dots--;
            }
            dots = counter;
            while (reseter > 0)
            {
                Console.Write("*");
                reseter--;
            }
            while (dots > 0)
            {
                Console.Write(".");
                dots--;
            }
            if (stars > height)
                break;
            Console.WriteLine();
        }
        
    }
}
